const Icon = ({type}) => {
    const baseUrl = 'https://yjy-teach-oss.oss-cn-beijing.aliyuncs.com/reactbase/ka/';
    return (
        <img
            src={`${baseUrl}+${type}.svg`}
            alt="icon"
            style={{width: 20, height: 20,}}
        />
    )
}

export default Icon
